package jdkproxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class CustomInvocationHandler implements InvocationHandler {
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("It is using CustomInvocationHandler");
        CustomInvocationContext customInvocationContext= new CustomInvocationContext(proxy,method,args);
        return customInvocationContext.proceed();
    }
}
